﻿using System;

namespace Psi.Domain.BaseEntity
{
    /// <summary>
    /// 主实体基类
    /// </summary>
    public abstract class MasterEntity : Entity, IDeleted
    {
        /// <summary>
        /// 创建者标识
        /// </summary>
        public long CreatorId { get; set; } = 0;

        /// <summary>
        /// 创建者名称
        /// </summary>
        public string Creator { get; set; } = "sys";

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改者标识
        /// </summary>
        public long ReviserId { get; set; } = 0;

        /// <summary>
        /// 修改者名称
        /// </summary>
        public string Reviser { get; set; } = "sys";

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ReviseTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 软删除标识
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}